package com.xianyun.site.iblog.dto.user;

import com.alibaba.cola.dto.Command;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.servlet.http.HttpServletRequest;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 系统用户Command 对象
 * @author mac_zyj
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class SystemUserAddCmd extends Command implements Serializable {
    private static final long serialVersionUID = 1L;
    /** 邮箱 */
    private String email;

    /** 手机号 */
    private String mobile;

    /**三方账号ID*/
    private String socialId;

    /** 密码 */
    @NotEmpty(message = "密码")
    private String password;

    @NotNull(message = "Request 上下文不能为空!")
    private HttpServletRequest request;
}
